﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchResult.ascx.cs" Inherits="Controls_Template_SearchResult" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<script type="text/javascript">
    function Download(idmau) {
        alert("abc");
        document.getElementById('<%=hdnIDMau.ClientID %>').value = idmau;
        $get('<%=btnDownload.ClientID%>').click();
//        document.getElementById('btnDownload').onclick();
//        alert("def");
    }
</script>

<div id="content" style="margin-left: 20px">
    <h2 style="text-align: center; color: Blue">
        Kết quả tìm kiếm
    </h2>
    <div id="divResult" class="" style="overflow: scroll">
        <asp:Repeater ID="rptResultSearch" runat="server">
            <ItemTemplate>
                <br /><br />
                <asp:Label ID="lbTenVirus" runat="server" style="color: Red; font-weight: bold" Text='<%# Eval("name")%>'></asp:Label>                
                <asp:Button ID="btnEdit" runat="server" Text="Sửa" class="button" style="display: none" CommandArgument='<%# Eval("id")%>' OnClick="btnEdit_Click" />
                <%--<asp:Button ID="btnDelete" runat="server" Text="Xóa" class="button" style="display: none" CommandArgument='<%# Eval("id")%>' OnClick="btnDelete_Click" />--%><br /><br />
                <table id="tbResult" width="100%" border="1" style="border-collapse: collapse">
                    <thead>
                        <tr style="background-color: #507CD1; color: #169; font-weight: bold; text-align: center">
                            <td style="display: none"></td>
                            <td style="color: White">Tên Mẫu</td>
                            <td style="color: White">Loại Mẫu</td>
                            <td style="color: White">Tên Hàm Diệt</td>
                            <td style="color: White">Người Phân Tích</td>
                            <td style="color: White">Ngày Tháng</td>
                            <td style="color: White">Sự Vụ</td>
                            <td style="color: White">Loại Malware</td>
                            <td style="color: White">Hành Vi</td>
                            <td style="color: White">Kĩ Thuật Anti</td>
                            <td style="color: White">Domain Server Connect</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td style="display: none" id="tdID" runat="server"><%# Eval("id")%></td>
                            <td style="text-align: center"><%#Eval("name") %></td>
                            <td style="text-align: center"><%#Eval("LoaiMau") %></td>
                            <td style="text-align: center"><%#Eval("tenhamdiet") %></td>
                            <td style="text-align: center"><%#Eval("NguoiPhanTich") %></td>
                            <td style="text-align: center"><%#Eval("date") %></td>
                            <td style="text-align: center"><%#Eval("suvu") %></td>
                            <td style="text-align: center"><%#Eval("LoaiMalware") %></td>
                            <td style="text-align: center"><%#Eval("HanhVi") %></td>
                            <td style="text-align: center"><%#Eval("KiThuatAnti") %></td>
                            <td style="text-align: center"><%#Eval("domainserverconnect") %></td>
                        </tr>
                    </tbody>
                </table>
                <asp:HyperLink Target="_blank" ID="linkThongTinChung" runat="server" Text="Thông Tin Chung" style="display: none"></asp:HyperLink>
                <asp:HyperLink Target="_blank" ID="linkThongTinKyThuatChiTiet" runat="server" Text="Thông Tin Kỹ Thuật Chi Tiết" style="display: none"></asp:HyperLink>
                <asp:HyperLink Target="_blank" ID="linkThongTinFile" runat="server" Text="Thông Tin File" style="display: none"></asp:HyperLink>
                <asp:HyperLink Target="_blank" ID="linkThongTinHamDiet" runat="server" Text="Thông Tin Hàm Diệt" style="display: none"></asp:HyperLink>
                <asp:HyperLink ID="linkData" runat="server" Text="Mẫu + Pdb + Hàm Diệt + Data" style="display: none"></asp:HyperLink>
            </ItemTemplate>
        </asp:Repeater>
    </div>

</div>
<div id="hiddenContent" style="display: none">
    <asp:HiddenField ID="hdnIDMau" runat="server" />
    <asp:Button ID="btnDownload" runat="server" OnClick="btnDownload_Click" />
</div>